home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / dprof.z / dprof
Encoding:
Text File  |  2002-10-03  |  7.3 KB  |  199 lines

  1.  
  2.  
  3.  
  4. DDDDPPPPRRRROOOOFFFF((((1111))))                                                              DDDDPPPPRRRROOOOFFFF((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ddddpppprrrrooooffff - a memory access profiling tool
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      dprof [----iiiittttiiiimmmmeeeerrrr [----mmmmssss nnnn]]
  13.      [----hhhhwwwwppppcccc [----ccccnnnnttttrrrr  _n] [----oooovvvvffffllll _n]]
  14.      [----ppppccccmmmmiiiinnnn _m_i_n] [----ppppccccmmmmaaaaxxxx _m_a_x]
  15.      [----ddddaaaammmmiiiinnnn mmmmiiiinnnn] [----ddddaaaammmmaaaaxxxx mmmmaaaaxxxx]
  16.      [----ppppaaaaggggeeee|----lllliiiinnnneeee|----hhhheeeexxxx|----oooocccctttt|----qqqquuuuaaaadddd|----ddddoooouuuubbbblllleeee|----iiiinnnntttt|----wwwwoooorrrrdddd]
  17.      [----ssssiiiigggguuuussssrrrr]
  18.      [----oooouuuutttt _f_i_l_e] [----ppppoooouuuutttt _d_p_l_a_c_e__f_i_l_e] [----tttthhhhrrrreeeeaaaaddddssss____ppppeeeerrrr____mmmmeeeemmmm _n]
  19.      [----vvvveeeerrrrbbbboooosssseeee] _c_o_m_m_a_n_d
  20.  
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      The given _c_o_m_m_a_n_d is executed and memory accesses are sampled; after
  24.      completion, _d_p_r_o_f prepares a histogram of memory accesses.  Histograms
  25.      are computed for each thread of multi-threaded applications that utilize
  26.      sssspppprrrroooocccc(2).
  27.  
  28.  
  29.  
  30.  
  31. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  32.      ----iiiittttiiiimmmmeeeerrrr
  33.           Use the interval timer as a sampling trigger.  This is the default
  34.           sampling method on all systems other than Origin and
  35.           PowerChallenge/PowerOnyx R10000 systems.
  36.  
  37.      ----mmmmssss _n
  38.           Trigger every _n milliseconds. The default is 10 milliseconds, this
  39.           is also the minimum value. Any value of _n less than 10 will result
  40.           in an error.
  41.  
  42.      ----hhhhwwwwppppcccc
  43.           Use R10000 hardware event counter overflow as a sampling trigger.
  44.           This is the default sampling method for all Origin systems, and
  45.           PowerChallenge/PowerOnyx R10000 systems. This option is not
  46.           available on other systems.
  47.  
  48.      ----ccccnnnnttttrrrr _n
  49.           Use R10000 hardware event counter _n as the event trigger.  Default
  50.           is number of cycles; event 0.
  51.  
  52.      ----oooovvvvffffllll _n
  53.           Trigger after _n events have occurred.  Default is 10,000.
  54.  
  55.      ----ppppccccmmmmiiiinnnn _m_i_n
  56.           Ignore events that have a program counter smaller than _m_i_n.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDPPPPRRRROOOOFFFF((((1111))))                                                              DDDDPPPPRRRROOOOFFFF((((1111))))
  71.  
  72.  
  73.  
  74.      ----ppppccccmmmmaaaaxxxx _m_a_x
  75.           Ignore events that have a program counter larger than _m_a_x.
  76.  
  77.      ----ddddaaaammmmiiiinnnn _m_i_n
  78.           Ignore memory operations that have a virtual addresses smaller than
  79.           _m_i_n.
  80.  
  81.      ----ddddaaaammmmaaaaxxxx _m_a_x
  82.           Ignore memory operations that have a virtual addresses larger than
  83.           _m_a_x.
  84.  
  85.      ----ppppaaaaggggeeee
  86.           Use pagesize (16k bytes) granularity for memory access sampling.
  87.           This is the default size.
  88.  
  89.      ----lllliiiinnnneeee
  90.           Use cache linesize (128 bytes) size granularity for memory access
  91.           sampling.
  92.  
  93.      ----hhhheeeexxxx Use hex (64 bytes) size granularity for memory access sampling.
  94.  
  95.      ----oooocccctttt Use oct (32 bytes) size granularity for memory access sampling.
  96.  
  97.      ----qqqquuuuaaaadddd
  98.           Use quad (16 bytes) size granularity for memory access sampling.
  99.  
  100.      ----ddddoooouuuubbbblllleeee
  101.           Use double (8 bytes) size granularity for memory access sampling.
  102.  
  103.      ----iiiinnnntttt Use int (4 bytes) size granularity for memory access sampling.
  104.  
  105.      ----wwwwoooorrrrdddd
  106.           Use int (4 bytes) size granularity for memory access sampling.
  107.  
  108.      ----ssssiiiigggguuuussssrrrr
  109.           Sampling is not started until SIGUSR1 is received. Further SIGUSR1
  110.           signals toggle sampling off and on.
  111.  
  112.      ----oooouuuutttt _f_i_l_e
  113.           Output is sent to _f_i_l_e rather than standard output.
  114.  
  115.      ----ppppoooouuuutttt _d_p_l_a_c_e__f_i_l_e
  116.           Placement information suitable for ddddppppllllaaaacccceeee(1) is written to
  117.           _d_p_l_a_c_e__f_i_l_e.
  118.  
  119.      ----tttthhhhrrrreeeeaaaaddddssss____ppppeeeerrrr____mmmmeeeemmmm _n
  120.           When building _d_p_l_a_c_e__f_i_l_e a thread assignment that assumes _n threads
  121.           per memory is assumed. The default is two threads per memory.
  122.  
  123.      ----vvvveeeerrrrbbbboooosssseeee
  124.           Detailed diagnostic information is written to standard error.
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DDDDPPPPRRRROOOOFFFF((((1111))))                                                              DDDDPPPPRRRROOOOFFFF((((1111))))
  137.  
  138.  
  139.  
  140. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  141.      To collect a memory access histogram from a program called a.out that
  142.      would normally be run by
  143.         % a.out < in > out
  144.      and place the results in a file called _h_i_s_t_o_g_r_a_m one would simply
  145.         % dprof -out histogram a.out < in > out .
  146.  
  147.  
  148. DDDDEEEEPPPPEEEENNNNDDDDEEEENNNNCCCCIIIIEEEESSSS
  149.      ddddpppprrrrooooffff options ----hhhhwwwwppppcccc, ----ccccnnnnttttrrrr _n and ----oooovvvvffffllll _n only apply to R10000 based
  150.      systems.
  151.  
  152.  
  153. NNNNOOOOTTTTEEEESSSS
  154.      ddddpppprrrrooooffff option ----ppppoooouuuutttt will generate a simple placement file based on the
  155.      count of page references per the sampling criteria. This is a basic
  156.      placement file which cannot take into consideration such factors as
  157.      temporal access, node distance, and absolute page reference counts, and
  158.      large pages.
  159.  
  160.  
  161. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  162.      ddddppppllllaaaacccceeee(1), sssspppprrrroooocccc(2), rrrr11110000kkkk____ccccoooouuuunnnntttteeeerrrrssss(5)
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.